//
//  AppDelegate.swift
//  Weibo
//
//  Created by dongpeng on 16/1/10.
//  Copyright © 2016年 dongpeng. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
//      实例化一个Window
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
//       设置背景色
        
         window?.backgroundColor = UIColor.whiteColor()
//        设置根控制器
        
       window?.rootViewController = mainTabBarViewController()
        
       window?.makeKeyAndVisible()
        
     UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
      UITabBar.appearance().tintColor = UIColor.orangeColor()
        
        
        return true
    }

}